//
//  TextUtils.m
//  NewNGPlay
//
//  Created by YMac on 2017/12/21.
//  Copyright © 2017年 zchd. All rights reserved.
//

#import "YTextSizeUtils.h"
@implementation YTextSizeUtils
+(CGRect)getCGRect:(NSString*) content width:(CGFloat) width font:(UIFont*) font{
    return [content boundingRectWithSize:CGSizeMake(width, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:font} context:nil];
}
@end
